package com.jhsw.roadsun.module.business.controller.app.useraddress.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;

@Schema(description = "APP - 地址簿新增/修改 Request VO")
@Data
public class UserAddressSaveReqVO {

    @Schema(description = "地址簿ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26972")
    private Long id;

    @Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "详细地址不能为空")
    private String address;

    @Schema(description = "类型（0寄件地址 1收件地址）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "类型不能为空")
    private Boolean type;

    @Schema(description = "默认地址（0否 1是）", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean isNormal;
}